#define _CRT_SECURE_NO_WARNINGS
#include"SLTlist.h"




//void test()
//{
//	SN* node1 = (SN*)malloc(sizeof(SN));
//	SN* node2 = (SN*)malloc(sizeof(SN));
//	SN* node3 = (SN*)malloc(sizeof(SN));
//	SN* node4 = (SN*)malloc(sizeof(SN));
//	SN* node5 = (SN*)malloc(sizeof(SN));
//	
//	node1->x = 1;
//	node2->x = 2;
//	node3->x = 3;
//	node4->x = 4;
//	node5->x = 5;
//	node1->next = node2;
//	node2->next = node3;
//	node3->next = node4;
//	node4->next = node5;
//	node5->next = NULL;
//	SN* plist = node1;
//	SLTPrint(plist);
//}
//


void test01()
{
	SN* plist = NULL;
	SLTpushback(&plist, 1);
	SLTPrint(plist);
	SLTpushback(&plist, 2);
	SLTPrint(plist);
	SLTpushback(&plist, 3);
	SLTPrint(plist);
	SLTpushback(&plist, 4);
	SLTPrint(plist);
	SLTpushback(&plist, 5);
	SLTPrint(plist);


}





int main()
{
	//test();
	test01();
	return 0;
}